#ifndef DIALOG_ADDCANDIDATES_H
#define DIALOG_ADDCANDIDATES_H

#include <QDialog>
#include <QMessageBox>
#include <QMenu>
#include "dbOperate/dbPrescription.h"

namespace Ui {
class Dialog_addCandidates;
}

class Dialog_addCandidates : public QDialog
{
	Q_OBJECT
private:
	dbPrescription dp;
	QMenu menu;

public:
	explicit Dialog_addCandidates(QWidget *parent = 0);
	~Dialog_addCandidates();
	void refreshTable();
	void initInterface();
private slots:
	void on_pushButton_add_clicked();

	void on_tableWidget_customContextMenuRequested(const QPoint &pos);
	void delete_record();

private:
	Ui::Dialog_addCandidates *ui;
};

#endif // DIALOG_ADDCANDIDATES_H
